package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class OfficialMessageBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2553489387863336525L;
	private String content ;
	private String created_time ;
	private UserActorBean from_actor ;
	private int message_type_id ;
	private int official_id ;
	public String getContent() {
		return content;
	}
	public String getCreated_time() {
		return created_time;
	}
	public UserActorBean getFrom_actor() {
		return from_actor;
	}
	public int getMessage_type_id() {
		return message_type_id;
	}
	public int getOfficial_id() {
		return official_id;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, OfficialMessageBean.class);
		}
		return null;
	}

}
